package cn.iocoder.yudao.module.hs.controller.admin.device.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 基站信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceRespVO {

    @Schema(description = "基站主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2320")
    @ExcelProperty("基站主键")
    private Long id;

    @Schema(description = "基站ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("基站ID")
    private String code;

    @Schema(description = "基站IP", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("基站IP")
    private String ip;

    @Schema(description = "所在仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "400")
    @ExcelProperty("所在仓库")
    private Long warehouseId;

    @Schema(description = "是否为待出库区", requiredMode = Schema.RequiredMode.REQUIRED, example = "400")
    @ExcelProperty("是否为待出库区")
    @DictFormat("infra_boolean_string")
    private Boolean waitingArea;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "是否已连接")
    private boolean isConnected;

    @Schema(description = "最近一次心跳时间 ")
    private LocalDateTime lastHeartbeatTime;

}
